export default {
  tree_product: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.product',
    type: 'tree',

    fields: {
      nc_state: {
        string: '状态',
        selection: [
          ['draft', '待处理'],
          ['done', '已完成']
          // ['error', '错误']
        ]
      },

      // nc_product_ids: { string: '导入数据' },

      vat_product_id: { string: '税务分类' },
      vat_product_code: { string: '税务分类编码' },
      vat_product_name: { string: '税务分类名称' },

      name: { string: '名称' },
      code: { string: '编码' },

      spec: { string: '规格' },
      uom: { string: '单位' }
      // price_unit: { string: '单价' }
      // note: { string: '备注' }
    }
  },

  form_product: {
    _odoo_model: 'ir.ui.view',
    model: 'fp.product',
    type: 'form',

    fields: {
      nc_state: {
        string: '状态',
        selection: [
          ['draft', '待处理'],
          ['done', '已完成']
          // ['error', '错误']
        ]
      },
      nc_product_ids: { string: '导入数据' },

      vat_product_id: { string: '税务分类' },
      vat_product_code: { string: '税务分类编码' },
      vat_product_name: { string: '税务分类名称' },

      name: { string: '名称' },
      code: { string: '编码' },

      spec: { string: '规格' },
      uom: { string: '单位' },
      price_unit: { string: '单价' },
      note: { string: '备注' }
    }
  },

  action_product: {
    _odoo_model: 'ir.actions',
    name: '商品',
    type: 'ir.actions.act_window',
    res_model: 'fp.product',
    domain: [],
    context: {},
    views: {
      tree: 'tree_product',
      form: 'form_product'
    }
  }
}
